package com.lzh.others.java8.book.chapter_3_3常用流操作;

import java.util.List;
import java.util.stream.Stream;

/**
 * @author lzh
 */
public class Album {

    private List<Singer> musicians;

    public Album() {
    }

    public Album(List<Singer> musicians) {
        this.musicians = musicians;
    }

    public List<Singer> getMusicians() {
        return musicians;
    }


    public Stream<Singer> getMusiciansByStream() {
        return musicians.stream();
    }

    public void setMusicians(List<Singer> musicians) {
        this.musicians = musicians;
    }
}
